package StringTest;
import java.util.Scanner;
public class Test2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入旋转的次数");
        int count = sc.nextInt();
        char[] arr = {'a', 'b', 'c'};
        //1.bca
        //2.cab;3
        //3.abc

        //确定挪几次
        count%=arr.length;
        for (int i = 0; i < count; i++) {
          char tmp=arr[0];
          for (int j = 0 ;j < arr.length-1; j++) {
              arr[j]=arr[j+1];
              arr[j+1]=tmp;
          }
        }
        String str = new String(arr);
        System.out.println(str);

    }
}
